﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MoleCart.Core.Domain.Catalog;
using MoleCart.Core.Service.Catalog;

namespace MoleCart.Web.Controllers
{
    public class ProductController : Controller
    {
        IProductService _productService;

        public ProductController(IProductService productService){
            _productService = productService;
        }//

        public ViewResult Index()
        {
            Product p = _productService.GetProductById(1);//
            //IList<Product> list = _productService.GetProductList();
            return View (p);
        }
    }
}
